import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'myLogin',
    component: () => import('../components/myLogin.vue')
  },
  {
    path: '/myMenu',
    name: 'myMenu',
    component: () => import('../components/myMenu.vue'),
      children:[{
        path: '/myHome',
        name: 'myHome',
        meta:{
        title:'我的首页'
      },
      component: () => import('../components/myHome.vue'),
    },
    {
      path: '/myPrice',
      name: 'myPrice',
      meta:{
      title:'价格列表'
    },
    component: () => import('../components/Price/myPrice.vue'),
  },
  {
    path: '/userPrice',
    name: 'userPrice',
    meta:{
    title:'价格列表'
  },
  component: () => import('../components/Price/userPrice.vue'),
},
  {
    path: '/myOrder',
    name: 'myOrder',
    meta:{
    title:'订单列表'
  },
  component: () => import('../components/Order/myOrder.vue'),
},
{
  path: '/userOrder',
  name: 'userOrder',
  meta:{
  title:'订单列表'
},
component: () => import('../components/Order/userOrder.vue'),
},
{
  path: '/myMain',
  name: 'myMain',
  meta:{
  title:'用户列表'
},
component: () => import('../components/myMain.vue'),
},
{
  path: '/myComment',
  name: 'myComment',
  meta:{
  title:'评价列表'
},
component: () => import('../components/Comment/myComment.vue'),
},
{
  path: '/userComment',
  name: 'userComment',
  meta:{
  title:'我的评价'
},
component: () => import('../components/Comment/userComment.vue'),
},
{
  path: '/myNews',
  name: 'myNews',
  meta:{
  title:'资讯列表'
},
component: () => import('../components/News/myNews.vue'),
},
{
  path: '/userNews',
  name: 'userNews',
  meta:{
  title:'资讯列表'
},
component: () => import('../components/News/userNews.vue'),
},
{
  path: '/myMarkdown',
  name: 'myMarkdown',
  meta:{
  title:'markdown'
},
component: () => import('../components/myMarkdown.vue'),
}
  ]
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
